﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CleverDD.Model.Axis
{
    public class AxisInfoEntity : BaseEntity
    {
        public short AxisId;
        public string Name = "";

        //Jog运动参数
        public double JogVel;
        public double JogAcc;
        public double JogDec;
        public double JogSmoothTime;

        //Trap运动参数
        public double TrapVel;
        public double TrapAcc;
        public double TrapDec;
        public short TrapSmoothTime;

        //回零运动参数
        public HomeModeType HomeModeMode;
        public HomeDirectionType HomeDirection;
        public short HomeHighVel;
        public short HomeLowVel;
        public double HomeAcc;
        public double HomeDec;
        public short IndexDirection;


        //实际距离需要多少脉冲
        public double DistanceToPulse;
        public int Band;// 误差带大小。单位：脉冲。
        public int BandTime;//误差带保持时间。单位：250 微秒。 1毫秒等于1000微秒

    }

    //回零方式
    public enum HomeModeType
    {
        限位加原点回零,
        原点回零,
        限位回零,
    }

    //回零方向
    public enum HomeDirectionType
    {
        正方向回零,
        负方向回零,
    }
}
